package com.lc.pianostudent.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/2/22.
 */
@HttpInlet(Conn.UPDATEPERSON)
public class PostUpdatePerson extends BaseAsyPost {

    public String user_id;
    public String text;
    public PostUpdatePerson(AsyCallBack asyCallBack) {
        super(asyCallBack);
    }

    @Override
    protected PostUpdatePersonInfo parser(JSONObject object) throws Exception {
        if (object.optString("code").equals("200")) {

            PostUpdatePersonInfo info = new PostUpdatePersonInfo();

            info.code = object.optString("code");
            info.message = object.optString("message");



            TOAST = object.optString("message");
            return info;

        } else {

            TOAST = object.optString("message");

        }

        return null;
    }

    public static class PostUpdatePersonInfo {

        public String code, message;


    }

}
